<%--
  Created by IntelliJ IDEA.
  User: LJS
  Date: 2018/11/15
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page trimDirectiveWhitespaces="true"%>
<%@page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName()
            + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>人员管理</title>
    <jsp:include page="resource.jsp"/>
</head>
<body>
<jsp:include page="common.jsp"/>

<!-- Start #content -->
<div id="content">
    <!-- Start .content-wrapper -->
    <div class="content-wrapper">
        <!-- Start .row -->
        <div class="row">
            <!-- Start .page-header -->
            <div class="col-lg-12 heading">
                <h1 class="page-header"><i class="im-user4"></i> 人员管理</h1>
            </div>
            <!-- End .page-header -->
        </div>
        <!-- End .row -->
        <!-- Start .outlet -->
        <div class="outlet">
            <!-- Page start here ( usual with .row ) -->
            <div class="row printable">
                <!-- col-lg-12 start here -->
                <div class="col-lg-12">
                    <!-- Start .panel -->
                    <div class="panel panel-default plain">
                        <div class="panel-heading white-bg"></div>
                        <div class="panel-body">
                            <!-- Start .invoice -->
                            <div class="invoice">
                                <a href="<%=basePath%>staff/all/list.do" class="mb5">返回</a>
                                <form class="form-horizontal" id="invoice-form"
                                      action="<%=basePath%>staff/insert.do" method="post">
                                    <table class="table table-bordered">
                                        <tr>
                                            <td width="15%">
                                                <label for="staffNo" class="control-label">工号</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="staffNo" name="staffNo">
                                            </td>
                                            <%--<td width="15%" rowspan="3">
                                                <label for="" class="control-label">照片</label>
                                            </td>
                                            <td width="35%" rowspan="3">
                                                <img class="" src="assets/img/avatars/132.jpg" alt="">
                                                &lt;%&ndash;<button class="btn btn-primary btn-xs">上传照片</button>&ndash;%&gt;
                                                <form action="" method="post" enctype="multipart/form-data">
                                                    <input type="file" name="filename" multiple="multiple" class="col-xs-10" />
                                                    <input type="submit"  id="uploadButton" value="上传照片" class="btn btn-primary btn-xs col-xs-2">
                                                </form>
                                            </td>--%>
                                            <td width="15%">
                                                <label for="staffName" class="control-label">姓名</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="staffName" name="staffName">
                                            </td>
                                        </tr>
                                        <%--<tr>

                                        </tr>--%>
                                        <tr>
                                            <td width="15%">
                                                <label for="staffDepartment" class="control-label">所在部门</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="staffDepartment" name="staffDepartment">
                                                <%--<select class="form-control">
                                                    <option value="">--请选择--</option>
                                                    <option value="">营销部</option>
                                                    <option value="">技术部</option>
                                                    <option value="">人事部</option>
                                                </select>--%>
                                            </td>
                                            <td width="15%">
                                                <label for="staffPost" class="control-label">工作岗位</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="staffPost" name="staffPost">
                                                <%--<select class="form-control">
                                                    <option value="">--请选择--</option>
                                                    <option value="">萌新</option>
                                                    <option value="">经理</option>
                                                    <option value="">主管</option>
                                                </select>--%>
                                            </td>
                                        </tr>
                                        <tr>

                                            <td width="15%">
                                                <label for="staffSex" class="control-label">性别</label>
                                            </td>
                                            <td width="35%">
                                                <select class="form-control" id="staffSex" name="staffSex">
                                                    <option value="">--请选择--</option>
                                                    <c:forEach items="${isList}" var="is">
                                                        <option value="${is.dictId}">${is.dictItemName}</option>
                                                    </c:forEach>
                                                </select>
                                            </td>
                                            <td width="15%">
                                                <label for="staffBirthday" class="control-label">出生年月</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control datetime-picker2" maxlength="20"
                                                       id="staffBirthday" name="staffBirthday">
                                            </td>
                                        </tr>
                                        <tr>

                                            <td width="15%">
                                                <label for="staffIdCard" class="control-label">身份证号</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="staffIdCard" name="staffIdCard">
                                            </td>
                                            <td width="15%">
                                                <label for="staffIsWork" class="control-label">是否在职</label>
                                            </td>
                                            <td width="35%">
                                                <select class="form-control" id="staffIsWork" name="staffIsWork">
                                                    <option value="">--请选择--</option>
                                                    <c:forEach items="${isWorkList}" var="is">
                                                        <option value="${is.dictId}">${is.dictItemName}</option>
                                                    </c:forEach>
                                                </select>
                                            </td>
                                        </tr>
                                        <%--<tr>
                                            &lt;%&ndash;<td width="15%">
                                                <label for="" class="control-label">入职日期</label>
                                            </td>
                                            <td width="35%">
                                                <div class="input-group">
                                                    <input class="form-control datetime-picker2" type="text">
                                                    <span class="input-group-addon"><i class="im-calendar"></i></span>
                                                </div>
                                            </td>&ndash;%&gt;

                                        </tr>--%>
                                        <tr>
                                           <%-- <td width="15%">
                                                <label for="" class="control-label">离职日期</label>
                                            </td>
                                            <td width="35%">
                                                <div class="input-group">
                                                    <input class="form-control datetime-picker2" type="text">
                                                    <span class="input-group-addon"><i class="im-calendar"></i></span>
                                                </div>
                                            </td>--%>
                                            <td width="15%">
                                                <label for="staffPassword" class="control-label">密码</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="staffPassword" name="staffPassword">
                                            </td>
                                           <%--<td width="15%">
                                               <label for="" class="control-label">直接上司工号</label>
                                           </td>
                                           <td width="35%">
                                               <input type="text" class="form-control limitInput" maxlength="20" id="" name="">
                                           </td>--%>
                                        </tr>
                                       <%-- <tr>
                                            &lt;%&ndash;<td width="15%">
                                                <label for="" class="control-label">角色</label>
                                            </td>
                                            <td width="35%">
                                                <select class="form-control">
                                                    <option value="">--请选择--</option>
                                                    <option value="">角色一</option>
                                                    <option value="">角色二</option>
                                                </select>
                                            </td>&ndash;%&gt;

                                        </tr>
                                        <tr>
                                            &lt;%&ndash;<td width="15%">
                                                <label for="" class="control-label">直接上司姓名</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20" id="" name="">
                                            </td>&ndash;%&gt;
                                            &lt;%&ndash;<td width="15%">
                                                <label for="" class="control-label">创建日期</label>
                                            </td>
                                            <td width="35%">
                                                <div class="input-group">
                                                    <input class="form-control datetime-picker1" type="text" value="06 November 2018 -  18:25">
                                                    <span class="input-group-addon"><i class="im-calendar"></i></span>
                                                </div>
                                            </td>&ndash;%&gt;
                                        </tr>--%>
                                    </table>
                                    <div class="form-group">
                                        <input type="submit" class="btn btn-primary col-md-3 col-md-offset-4" value="保存" />
                                    </div>
                                </form>
                            </div>
                            <!-- End .invoice -->
                        </div>
                    </div>
                    <!-- End .panel -->
                </div>
                <!-- col-lg-12 end here -->
            </div>
            <!-- Page End here -->
        </div>
        <!-- End .outlet -->
    </div>
    <!-- End .content-wrapper -->
    <div class="clearfix"></div>
</div>
<!-- End #content -->
</body>
</html>

